package com.gxxy.spring.kp03_aop.cls01_proxy.s1_static;

import org.junit.Test;
import org.junit.runner.RunWith;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Qualifier;
import org.springframework.test.context.ContextConfiguration;
import org.springframework.test.context.junit4.SpringJUnit4ClassRunner;

@RunWith(SpringJUnit4ClassRunner.class)
@ContextConfiguration
public class StaticProxyTest {
	
	@Autowired
	@Qualifier("serviceProxy")
	private IStudentService service;
	
	@Test
	public void testStaticProxy() throws Exception {
		service.save(new Student("Jack", 16));
	}

}
